﻿<%@ Page Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master"
    AutoEventWireup="true" Inherits="SouthernLand.WebMaster.Tools.SendNewsLetter"
    CodeBehind="SendNewsLetter.aspx.cs" %>

<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <uc:Title runat="server" ResourceKey='NewsLetter_SendNewsletter' />
    <table align="center" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <br />
                <asp:Panel runat="server" ID="PanelMsg" HorizontalAlign="Center" Visible="false">
                    <asp:Label runat="server" ID="lblMsg" Font-Bold="true" Text="error" CssClass="lblMsg"></asp:Label>
                </asp:Panel>
                <br />
            </td>
        </tr>
        <tr>
            <td align="center">
                <table border="0" cellpadding="6" align="center">
                    <tr>
                        <td align="right">
                            <b>
                                <%=ResourceManager.GetString("NewsLetter_Group") %>:</b>
                        </td>
                        <td align="left">
                            <asp:DropDownList runat="server" ID="ddlGroup" CssClass="dlGroup" Width="150">
                                <asp:ListItem Text="NewsLetter" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Khách hàng" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <b>
                                <%=ResourceManager.GetString("Title") %>:</b>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtTitle" ValidationGroup="NewsLetter" runat="server" Width="400"
                                MaxLength="350" />
                            <asp:RequiredFieldValidator ValidationGroup="NewsLetter" ControlToValidate="txtTitle"
                                Display="Dynamic" ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top">
                            <b>
                                <%=ResourceManager.GetString("Content") %>:</b>
                        </td>
                        <td align="left" style="font-size: 0.7em">
                            <FTB:FreeTextBox ID="txtBody" TabIndex="3" ToolbarLayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                                runat="Server" Width="550px" Height="200px" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2" valign="middle">
                            <asp:LinkButton ValidationGroup="NewsLetter" runat="server" ID="btSave" OnClick="btSend_Click"
                                Text="Send Newsletter" />
                            <br />
                            <br />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
